home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpmenu.h.z / gimpmenu.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  4.5 KB  |  141 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpmenu.h
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */        
  21.  
  22. #ifndef __GIMP_MENU_H__
  23. #define __GIMP_MENU_H__
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif /* __cplusplus */
  28.  
  29.  
  30. typedef gint (* GimpConstraintFunc)   (gint32    image_id,
  31.                        gint32    drawable_id,
  32.                        gpointer  data);
  33. typedef void (* GimpMenuCallback)     (gint32    id,
  34.                        gpointer  data);
  35.  
  36.  
  37. /* Popup the brush dialog interactively */
  38. typedef void (* GimpRunBrushCallback)    (gchar    *name,
  39.                       gdouble   opacity,
  40.                       gint      spacing,
  41.                       gint      paint_mode,
  42.                       gint      width,
  43.                       gint      height,
  44.                       gchar    *mask_data,
  45.                       gboolean  dialog_closing,
  46.                       gpointer  user_data);
  47.  
  48. /* Popup the pattern dialog */
  49. typedef void (* GimpRunPatternCallback)  (gchar    *name,
  50.                       gint      width,
  51.                       gint      height,
  52.                       gint      bpp,
  53.                       gchar    *mask_data,
  54.                       gboolean  dialog_closing,
  55.                       gpointer  user_data);
  56.   
  57. /* Popup the gradient dialog */
  58. typedef void (* GimpRunGradientCallback) (gchar    *name,
  59.                       gint      width,
  60.                       gdouble  *grad_data,
  61.                       gboolean  dialog_closing,
  62.                       gpointer  user_data);
  63.  
  64.  
  65. GtkWidget * gimp_image_menu_new    (GimpConstraintFunc constraint,
  66.                     GimpMenuCallback   callback,
  67.                     gpointer           data,
  68.                     gint32             active_image);
  69. GtkWidget * gimp_layer_menu_new    (GimpConstraintFunc constraint,
  70.                     GimpMenuCallback   callback,
  71.                     gpointer           data,
  72.                     gint32             active_layer);
  73. GtkWidget * gimp_channel_menu_new  (GimpConstraintFunc constraint,
  74.                     GimpMenuCallback   callback,
  75.                     gpointer           data,
  76.                     gint32             active_channel);
  77. GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint,
  78.                     GimpMenuCallback   callback,
  79.                     gpointer           data,
  80.                     gint32             active_drawable);
  81.  
  82.  
  83. gchar    * gimp_interactive_selection_brush    (gchar     *dialogname,
  84.                         gchar     *brush_name,
  85.                         gdouble    opacity,
  86.                         gint       spacing,
  87.                         gint       paint_mode,
  88.                         GimpRunBrushCallback  callback,
  89.                         gpointer   data);
  90.   
  91. GtkWidget * gimp_brush_select_widget           (gchar     *dname,
  92.                         gchar     *ibrush, 
  93.                         gdouble    opacity,
  94.                         gint       spacing,
  95.                         gint       paint_mode,
  96.                         GimpRunBrushCallback  cback,
  97.                         gpointer   data);
  98.   
  99. void      gimp_brush_select_widget_set_popup   (GtkWidget *widget,
  100.                         gchar     *pname,
  101.                         gdouble    opacity,
  102.                         gint       spacing,
  103.                         gint       paint_mode);
  104. void      gimp_brush_select_widget_close_popup (GtkWidget *widget);
  105.   
  106. gchar   * gimp_interactive_selection_pattern      (gchar     *dialogtitle,
  107.                            gchar     *pattern_name,
  108.                            GimpRunPatternCallback  callback,
  109.                            gpointer   data);
  110.  
  111. GtkWidget * gimp_pattern_select_widget            (gchar     *dname,
  112.                            gchar     *ipattern, 
  113.                            GimpRunPatternCallback  cback,
  114.                            gpointer    data);
  115.   
  116. void      gimp_pattern_select_widget_close_popup  (GtkWidget *widget);
  117. void      gimp_pattern_select_widget_set_popup    (GtkWidget *widget,
  118.                            gchar     *pname);
  119.  
  120. gchar   * gimp_interactive_selection_gradient     (gchar      *dialogtitle,
  121.                            gchar      *gradient_name,
  122.                            gint        sample_sz,
  123.                            GimpRunGradientCallback  callback,
  124.                            gpointer    data);
  125.   
  126. GtkWidget * gimp_gradient_select_widget           (gchar      *gname,
  127.                            gchar      *igradient, 
  128.                            GimpRunGradientCallback  cback,
  129.                            gpointer    data);
  130.  
  131. void      gimp_gradient_select_widget_close_popup (GtkWidget  *widget);
  132. void      gimp_gradient_select_widget_set_popup   (GtkWidget  *widget,
  133.                            gchar      *gname);
  134.  
  135.  
  136. #ifdef __cplusplus
  137. }
  138. #endif /* __cplusplus */
  139.  
  140. #endif /* __GIMP_MENU_H__ */
  141.